package com.isoft.service;//package com.wuhongjie.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.isoft.entity.User;
import org.springframework.stereotype.Component;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

@Component
public interface IUserService {
    public User getUserLogin(String name, String password);
    public Integer add(User user);
    public IPage<User> selectAll(Integer currentPage, Integer size);
    public List<User> selById(Integer id);
    public boolean updateById(User user);
    public boolean updateIdeAndAddressAndPhone(User user);
    public boolean deleteById(Integer id);
    public boolean updatePhoto(Integer id,String photourl);

    public String getIdentifyingCode(String email);

    void updatehead(Integer id, String url);
    public boolean updatePwd(Integer id, String password) throws UnsupportedEncodingException, NoSuchAlgorithmException;
}
